package com.shenghui.enterprise.base.service;
import com.shenghui.enterprise.vo.Result;
import com.shenghui.enterprise.base.entity.BaseDataDictionaryDetail;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shenghui.enterprise.base.entity.PageModel;

import java.util.Map;

/**
 * @Description: 字典子表业务逻辑接口
 * @Author houjh
 * @Email: happyxiaohou@gmail.com
 * @Date: 2020-06-01
 * @Copyright (c) 2020-2022 云南昇晖科技有限公司
 */

public interface IBaseDataDictionaryDetailService extends IService<BaseDataDictionaryDetail> {
    /**
     * 数据字典详情列表
     * @param map
     * @return
     */
    PageModel getDataDictionaryDetailList(Map map);

    /**
     * 根据父级字典code查询子字典列表
     * @param map
     * @return
     */
    PageModel getDataDictionaryDetailListByParentCode(Map map);

    /**
     * 添加字典详情信息
     * @param dataDictionaryDetail
     * @return
     */
    Result addDataDictionaryDetail(BaseDataDictionaryDetail dataDictionaryDetail);

    /**
     * 通过id查询字典详情信息
     * @param id
     * @return
     */
    Result getDataDictionaryDetailById(String id);

    /**
     * 删除字典详情信息
     * @param id
     * @return
     */
    Result deleteDataDictionaryDetail(String id);

    /**
     * 根据Code查询字典详情
     * @param code
     * @param codeTwo
     * @return
     */
    Result getDicDetailByCode(String code, String codeTwo);

    /**
     * 根据code获取字典详情
     * @param code
     * @return
     */
    BaseDataDictionaryDetail getBaseDataDictionaryDetailByCode(String code);
}
